#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2024-05-18 16:43
# @Author  : nedncs
# @File    : logger.py
# @Description : src/python_ldap_admin/core/common
import sys

from loguru import logger
from pathlib import Path
import Env
import utils

# 输出到控制台
logger.remove(0)
formatter = "{time:YYYY-MM-DD HH:mm:ss.SSS} |<lvl>{level:8}</>| {name} : {module}:{line:4} | - <lvl>{message}</>"
logger.add(sys.stderr, format=formatter, level="DEBUG")

# 输出到文件
# Env.LOG_HANDLER = logger.add('{}.log'.format(Env.LOG_FILE), format=formatter, level="INFO")

# 实例化日志
logger = logger.bind()
"""日志实例"""
